package com.ebupt.migu.music.outside.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ebupt.migu.music.api.entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Intellij IDEA.
 * User:  liuyangyang@cd.ebupt.com
 * Date:  2019/9/25
 */
@Mapper
@DS("mysql_mg")
public interface CMSMapper {

    /**
     * 查询活动列表
     * @param position
     * @return
     */
    List<HashMap<String, Object>> activities(@Param("position") String position, @Param("activityName") String activityName);

    void deleteByActivityID(String activityId);

    void createActivity(Activity activity);
}
